/ Assembly List / LJCNetCommon / HTMLBuilder / Link

Namespace - LJCNetCommon


Parameters
fileName - The CSS file name.
textState - The current text state values.

Returns

The added element.

Syntax

C#
public String Link(String fileName, TextState textState)

Appends a <link> element for a style sheet.

Example

C#
// Root Method Begin
var textState = new TextState();

// Defaults: IndentCharCount = 2, LineLimit = 80, WrapEnabled = false.
var hb = new HTMLBuilder(textState);

// Example Method:
hb.Link("File.css", textState);
var result = hb.ToString();

// result:
// <link rel="stylesheet" type="text/css" href=File.css />

Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.